package com.chen.authserver.v1.repository;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface RsaRepository {

    @Select("select privatekey from final_auth_rsa where tenable = 1 order by createtime limit 1")
    String findPrivateKey();

    @Select("select publickey from final_auth_rsa where tenable = 1 order by createtime limit 1")
    String findPublicKey();
}
